package com.jwsoft.manager.core.dao.mapper;

import com.jwsoft.manager.core.dao.model.EduHousehold;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EduhHousehold;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
  * 户籍信息表 Mapper 接口
  * </p>
*
* @author wangtao
* @since 2022-12-02
*/
@Mapper
public interface EduHouseholdMapper extends BaseMapper<EduHousehold> {
    EduHousehold getHouseholdById(@Param("householdId") String householdId);

    /**
     * 根据年度查询户籍数量
     * @param year
     * @return
     */
    Integer selectCountByYear(@Param("year") Integer year);

    List<EduHousehold> selectByYear(@Param("year") Integer year,@Param("pageSize")Integer pageSize);

    Integer deleteByTaskHistory(@Param("taskDetailId") String taskDetailId);

    Integer selectEncryptionCountByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);

    List<EduhHousehold> selectEncryptionByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId, @Param("pageSize") Integer pageSize) ;

    List<EduhHousehold> queryHistoryCleanHouseholdWithEnroll(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);

    List<EduhHousehold> queryCleanHouseholdWithEnroll(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);
}
